import '../../Home/activity/act_list_model.dart';

class MyPubActModel {
  String? msg;
  int? code;
  List<FuturePopular>? data;

  MyPubActModel({this.msg, this.code, this.data});

  MyPubActModel.fromJson(Map json) {
    msg = json['msg'];
    code = json['code'];
    if (json['data'] != null) {
      data = <FuturePopular>[];
      json['data'].forEach((v) {
        data!.add(FuturePopular.fromJson(v));
      });
    }
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data ={};
    data['msg'] = msg;
    data['code'] = code;
    if (this.data != null) {
      data['data'] = this.data!.map((v) => v.toJson()).toList();
    }
    return data;
  }
}

